home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6698 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1019 b 

  1. Path: newshub.cts.com!usenet
  2. From: lboard@cts.com (Larry Board)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Why won't this compile????
  5. Date: Sat, 17 Feb 1996 19:56:03 GMT
  6. Organization: CTS Network Services
  7. Message-ID: <31263147.4226550@news2.cts.com>
  8. References: <4g50et$9lh@steel.interlog.com>
  9. NNTP-Posting-Host: lboard.cts.com
  10.  
  11. On 17 Feb 1996 16:41:01 GMT, kingkaos@interlog.com (King Kaos) wrote:
  12.  
  13. >
  14. >    Hi.  Can someone please explain why this program won't
  15. >compile without errors?  I am using Power C under DOS.
  16.  
  17. This line tells you everything...
  18.  
  19. >pointc~1.txt(18):}
  20. >****************                ^202
  21. >      202: String constant cannot span lines
  22. >------------------------------------------------------------
  23.  
  24. You're missing a quote mark after the \n on the second printf.  All
  25. the other error messages are a result of this.
  26.  
  27. >
  28. >    swap(&var1, &var2);
  29. >    printf("Variables after swap");
  30. >    printf("var1 = %d , var2 = %d\n,var1,var2);
  31.  
  32. >
  33. >Any help will be appericated.  Please email respones directly to
  34. >me.  Thank's.
  35. >
  36.  
  37.